package com.punai.prodatalibrary.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.punai.common.annotation.Excel;
import com.punai.common.core.domain.BaseEntity;

/**
 * 项目主表对象 tab_lib_project
 *
 * @author tj
 * @date 2023-03-31
 */
@TableName("tab_lib_project")
public class LibProject extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private String id;

    /**
     * 项目编号
     */
    @Excel(name = "项目编号")
    private String code;

    /**
     * 项目名称
     */
    @Excel(name = "项目名称")
    private String name;

    /**
     * 项目层级
     */
    @Excel(name = "项目层级")
    private String type;

    /**
     * 父id
     */
    @Excel(name = "父id")
    private String pid;

    /**
     * 部门id
     */
    @Excel(name = "部门id")
    @TableField(fill = FieldFill.INSERT)
    private String deptId;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String aboutUser;

    /**
     * 归属人员 项目相关人员
     */
    private String aboutUserList;

    /**
     * 工程行业类别
     */
    @Excel(name = "工程行业类别")
    private String gchylb;

    /**
     * $column.columnComment
     */
    @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
    private String deactivateOrNot;

    /**
     * 公司id
     */
    @Excel(name = "公司id")
    private Long companyId;

    public String getPmproinfoid() {
        return pmproinfoid;
    }

    public void setPmproinfoid(String pmproinfoid) {
        this.pmproinfoid = pmproinfoid;
    }

    /**
     * pm项目原id
     */
    private String pmproinfoid;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return id;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getPid() {
        return pid;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setAboutUser(String aboutUser) {
        this.aboutUser = aboutUser;
    }

    public String getAboutUser() {
        return aboutUser;
    }

    public void setGchylb(String gchylb) {
        this.gchylb = gchylb;
    }

    public String getGchylb() {
        return gchylb;
    }

    public void setDeactivateOrNot(String deactivateOrNot) {
        this.deactivateOrNot = deactivateOrNot;
    }

    public String getDeactivateOrNot() {
        return deactivateOrNot;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public String getAboutUserList() {
        return aboutUserList;
    }

    public void setAboutUserList(String aboutUserList) {
        this.aboutUserList = aboutUserList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("code", getCode())
                .append("name", getName())
                .append("type", getType())
                .append("pid", getPid())
                .append("deptId", getDeptId())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("aboutUser", getAboutUser())
                .append("gchylb", getGchylb())
                .append("deactivateOrNot", getDeactivateOrNot())
                .append("companyId", getCompanyId())
                .toString();
    }
}
